package com.ecoolex.cms.system.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class SunrisedutyfreeApplicationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public SunrisedutyfreeApplicationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public SunrisedutyfreeApplicationExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public SunrisedutyfreeApplicationExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        SunrisedutyfreeApplicationExample example = new SunrisedutyfreeApplicationExample();
        return example.createCriteria();
    }

    public SunrisedutyfreeApplicationExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public SunrisedutyfreeApplicationExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public SunrisedutyfreeApplicationExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public SunrisedutyfreeApplicationExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public SunrisedutyfreeApplicationExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAppIdIsNull() {
            addCriterion("sunrisedutyfreeapplication.AppId is null");
            return (Criteria) this;
        }

        public Criteria andAppIdIsNotNull() {
            addCriterion("sunrisedutyfreeapplication.AppId is not null");
            return (Criteria) this;
        }

        public Criteria andAppIdEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.AppId =", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AppId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAppIdNotEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.AppId <>", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AppId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThan(String value) {
            addCriterion("sunrisedutyfreeapplication.AppId >", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AppId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.AppId >=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AppId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAppIdLessThan(String value) {
            addCriterion("sunrisedutyfreeapplication.AppId <", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AppId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAppIdLessThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.AppId <=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AppId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAppIdLike(String value) {
            addCriterion("sunrisedutyfreeapplication.AppId like", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotLike(String value) {
            addCriterion("sunrisedutyfreeapplication.AppId not like", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.AppId in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.AppId not in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.AppId between", value1, value2, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.AppId not between", value1, value2, "appId");
            return (Criteria) this;
        }

        public Criteria andAccessSecretIsNull() {
            addCriterion("sunrisedutyfreeapplication.AccessSecret is null");
            return (Criteria) this;
        }

        public Criteria andAccessSecretIsNotNull() {
            addCriterion("sunrisedutyfreeapplication.AccessSecret is not null");
            return (Criteria) this;
        }

        public Criteria andAccessSecretEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret =", value, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AccessSecret = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAccessSecretNotEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret <>", value, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretNotEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AccessSecret <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAccessSecretGreaterThan(String value) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret >", value, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretGreaterThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AccessSecret > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAccessSecretGreaterThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret >=", value, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretGreaterThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AccessSecret >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAccessSecretLessThan(String value) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret <", value, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretLessThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AccessSecret < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAccessSecretLessThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret <=", value, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretLessThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.AccessSecret <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAccessSecretLike(String value) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret like", value, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretNotLike(String value) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret not like", value, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret in", values, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretNotIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret not in", values, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret between", value1, value2, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andAccessSecretNotBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.AccessSecret not between", value1, value2, "accessSecret");
            return (Criteria) this;
        }

        public Criteria andTokenIsNull() {
            addCriterion("sunrisedutyfreeapplication.Token is null");
            return (Criteria) this;
        }

        public Criteria andTokenIsNotNull() {
            addCriterion("sunrisedutyfreeapplication.Token is not null");
            return (Criteria) this;
        }

        public Criteria andTokenEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.Token =", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Token = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTokenNotEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.Token <>", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenNotEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Token <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTokenGreaterThan(String value) {
            addCriterion("sunrisedutyfreeapplication.Token >", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenGreaterThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Token > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTokenGreaterThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.Token >=", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenGreaterThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Token >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTokenLessThan(String value) {
            addCriterion("sunrisedutyfreeapplication.Token <", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenLessThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Token < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTokenLessThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.Token <=", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenLessThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Token <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTokenLike(String value) {
            addCriterion("sunrisedutyfreeapplication.Token like", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenNotLike(String value) {
            addCriterion("sunrisedutyfreeapplication.Token not like", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.Token in", values, "token");
            return (Criteria) this;
        }

        public Criteria andTokenNotIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.Token not in", values, "token");
            return (Criteria) this;
        }

        public Criteria andTokenBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.Token between", value1, value2, "token");
            return (Criteria) this;
        }

        public Criteria andTokenNotBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.Token not between", value1, value2, "token");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("sunrisedutyfreeapplication.Remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("sunrisedutyfreeapplication.Remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.Remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Remarks = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.Remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Remarks <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("sunrisedutyfreeapplication.Remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Remarks > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.Remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Remarks >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("sunrisedutyfreeapplication.Remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Remarks < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.Remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Remarks <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("sunrisedutyfreeapplication.Remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("sunrisedutyfreeapplication.Remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.Remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.Remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.Remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.Remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("sunrisedutyfreeapplication.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("sunrisedutyfreeapplication.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("sunrisedutyfreeapplication.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("sunrisedutyfreeapplication.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("sunrisedutyfreeapplication.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("sunrisedutyfreeapplication.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("sunrisedutyfreeapplication.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("sunrisedutyfreeapplication.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("sunrisedutyfreeapplication.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("sunrisedutyfreeapplication.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("sunrisedutyfreeapplication.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("sunrisedutyfreeapplication.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("sunrisedutyfreeapplication.CreateUser is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("sunrisedutyfreeapplication.CreateUser is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.CreateUser =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.CreateUser <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("sunrisedutyfreeapplication.CreateUser >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.CreateUser >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("sunrisedutyfreeapplication.CreateUser <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.CreateUser <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("sunrisedutyfreeapplication.CreateUser like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("sunrisedutyfreeapplication.CreateUser not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.CreateUser in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.CreateUser not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.CreateUser between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.CreateUser not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("sunrisedutyfreeapplication.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("sunrisedutyfreeapplication.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("sunrisedutyfreeapplication.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("sunrisedutyfreeapplication.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("sunrisedutyfreeapplication.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("sunrisedutyfreeapplication.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("sunrisedutyfreeapplication.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("sunrisedutyfreeapplication.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("sunrisedutyfreeapplication.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("sunrisedutyfreeapplication.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("sunrisedutyfreeapplication.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("sunrisedutyfreeapplication.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("sunrisedutyfreeapplication.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("sunrisedutyfreeapplication.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("sunrisedutyfreeapplication.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("sunrisedutyfreeapplication.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("sunrisedutyfreeapplication.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(SunrisedutyfreeApplication.Column column) {
            addCriterion(new StringBuilder("sunrisedutyfreeapplication.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("sunrisedutyfreeapplication.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private SunrisedutyfreeApplicationExample example;

        protected Criteria(SunrisedutyfreeApplicationExample example) {
            super();
            this.example = example;
        }

        public SunrisedutyfreeApplicationExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(SunrisedutyfreeApplication.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(SunrisedutyfreeApplication.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.cms.system.entity.SunrisedutyfreeApplicationExample example);
    }
}